package org.particlethink.entry;

public enum ObjectionType implements IntEnum {
	SubOrder(0), Reconciliation(1);

	private final int code;

	ObjectionType(int code) {
		this.code = code;
	}

	public static ObjectionType valueOf(Integer value) {
        if (value == null) {
            return null;
        }
		switch (value) {
			case 0:
				return SubOrder;
			case 1:
				return Reconciliation;
		}
		return null;
	}

	@Override
	public int getCode() {
		return code;
	}
}
